package com.huazi.eduservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author huazi
 * @since 2021-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EduVideo对象", description="")
public class EduVideo implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "小节id")
    private String id;

    @ApiModelProperty(value = "课程id")
    private String courseId;

    @ApiModelProperty(value = "章节id")
    private String chapterId;

    @ApiModelProperty(value = "小节名称")
    private String title;

    @ApiModelProperty(value = "云端视频源Id")
    private String videoSourceId;

    @ApiModelProperty(value = "原视频文件名称")
    private String videoOriginName;

    @ApiModelProperty(value = "播放次数")
    private Long playCount;

    @ApiModelProperty(value = "是否免费",example = "0")
    private Integer isFree;

    @Version
    @ApiModelProperty(value = "乐观锁",example ="1")
    private Integer version;

    @ApiModelProperty(value = "视频大小",example ="0")
    private Integer size;

    @ApiModelProperty(value = "视频时长",example ="0")
    private Float duration;

    @ApiModelProperty(value = "Empty未上传 Transcoding转码中 Normal正常")
    private String status;


}
